﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kooboo.Connect;
using Kooboo.IoC;
using Kooboo.Domain;

namespace Kooboo.Commerce
{
    public static class IAdministratorCommand
    {
        public static Kooboo.Connect.User FindUser(this IAdministrator administrator)
        {
            if (administrator == null)
            {
                throw new ArgumentNullException("FindUser(this IAdministrator administrator)");
            }

            return UserServices.FindUser(administrator.UserName);

        }
    }
}
